import request from '@/router/axios'

//联系客户数据
export function contactData(query) {
    return request({
        url: `/cp/statistics/getStatisticsMessageData/${query.deptId}`,
        method: 'get',
        params: query
    })
}

//查询成员top10
export function employeeTop10Data() {
    return request({
        url: '/cp/statistics/top',
        method: 'get'
    })
}
//查询趋势图
export function tendencyData(query) {
    return request({
        url: '/cp/statistics/tendency',
        method: 'get',
        params: query
    })
}
//按日期查询tableData
export function tableDataByDate(query) {
    return request({
        url: `/cp/statistics/getStatisticsMessageDataPage/${query.deptId}`,
        method: 'get',
        params: query
    })
}
//按员工查询tableData
export function tableDataByEmp(query) {
    return request({
        url: '/cp/statistics/emp',
        method: 'get',
        params: query
    })
}

//成员详情-基本信息
export function employeeInfo(query) {
    return request({
        url: '/cp/statistics/details',
        method: 'get',
        params: query
    })
}

//成员详情-客户列表
export function customerData(query) {
    return request({
        url: '/cp/statistics/details-list',
        method: 'get',
        params: query
    })
}


//成员统计表
export function getCustomerTotal(deptId) {
    return request({
        url: `/cp/statistics/getStatisticsData/${deptId}`,
        method: 'get'
    })
}

// 分页统计某部门（机构和条线）下级机构（总行下分行列表，分行下支行列表，支行下成员列表）一段时间内成员基本信息
export function getCustomerList(obj) {
    return request({
        url: `/cp/statistics/getStatisticsDataPage/${obj.deptId}`,
        method: 'get',
        params: obj
    })
}